<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\Commodity_classify;

class ClassifyController extends Controller
{
    public function get_children_classify(Request $request)
    {
        $data = $request->input();
        if (empty($data))
            return return_array(1, '非法参数');
//        dd($data);
        $classify = new Commodity_classify;
        return return_array(0, '获取成功', $classify->get_classify($data["parent"]));
    }
}
